package com.mega.fe.mixins;

import com.mega.fe.util.BaseInit;
import net.minecraft.world.entity.Entity;
import net.minecraft.world.entity.EntityType;
import net.minecraft.world.level.Level;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;

@Mixin(Entity.class)
public class EntityMixin {
    @Inject(method = "<init>", at = @At("RETURN"))
    private void init(EntityType p_19870_, Level p_19871_, CallbackInfo ci) {
        BaseInit.entity_instances.add((Entity) (Object)this);
    }
}
